Skip to content

Add dispatch_states to decouple dispatch from agent lifecycle#3

Merged
toodimes merged 1 commit intomainfrom
davidastor/port-louis-v2
Mar 5, 2026
Merged

Add dispatch_states to decouple dispatch from agent lifecycle#3
toodimes merged 1 commit intomainfrom
davidastor/port-louis-v2

Conversation

@toodimes
Copy link
Copy Markdown
Owner

@toodimes toodimes commented Mar 5, 2026

Context

Symphony users need to restrict new agent dispatch to early pipeline states while keeping running agents alive through later review/staging states without manually stopping them.

TL;DR

Added dispatch_states config to separate which states can receive new agents from which states keep running agents alive.

Summary

  • Added tracker.dispatch_states config option to restrict new agent dispatch
  • When dispatch_states is set, only issues in those states get new agents
  • active_states continues to govern agent lifecycle — running agents stay alive if an issue moves to an active state that's not in dispatch_states
  • When unset, dispatch_states defaults to active_states for backward compatibility
  • Updated README with issue filtering and dispatch/active states documentation

Alternatives

Could have added separate no_dispatch_states but dispatch_states is simpler — operators configure what they DO want rather than what they don't.

Test Plan

  • mix compile --warnings-as-errors
  • mix test — all 199 tests pass
  • Verify with WORKFLOW.md: dispatch_states: "Todo, In Progress" and active_states: "Todo, In Progress, Code Review, On Staging"

…ycle

active_states previously controlled both which issues get new agents and
which states keep running agents alive. This adds dispatch_states so
operators can restrict new agent dispatch to early pipeline states while
keeping agents alive through later states like Code Review or On Staging.
When dispatch_states is unset, behavior is unchanged.
@toodimes toodimes merged commit 4258cca into main Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant